package com.lazyfish.superdir.dao;

import com.lazyfish.superdir.entity.Poster;
import com.lazyfish.superdir.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
@Primary
public interface PosterDao {
    @Select("SELECT * FROM poster")
    List<Poster> getPosterList();
    @Select("SELECT * FROM poster WHERE id = #{id}")
    Poster getPoster(int id);
}
